import network from "../network"


//登录
function loginApi(option) {
    return network({
        method: "post",
        url: "/users/login",
        data: option.data,
    })
}

//注册

function registerApi(option) {
    return network({
        method: "post",
        url: "/users/register",
        data: option.data,
    })
}

export {
    registerApi,
    loginApi
}
